<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><bean:message key='com.application.systemmanager.notice_list' /></title>
        <link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
		<script language="javascript" src="<%=applicationPath%>/js/main.js"></script>
	</head>
	<body>

	    <html:form styleId="noticeForm" action="listNotice.do?method=getNoticePartialList" styleClass="simple">
	      <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp;系统管理 &gt; 津贴设置</td>
		    </tr>
		  </table>
		   <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margb5">
		   
             <tr>
				<td>
					<fmt:bundle basename="com.application.systemmanager.struts.ApplicationResources">
				       <display:table name="allowanceList" class="simple" id="allowanceList"
								pagesize="15" partialList="true" defaultsort="1"
								defaultorder="descending" size="resultSize"
								requestURI="listAllowancePut.do?method=getAllowancePutList">
								<display:column property="projectType" titleKey="com.application.systemmanager.projectType"
									 style="width:5%; text-align:center;"  />
								<display:column property="personLevel" titleKey="com.application.systemmanager.personLevel"
									style="width:5%; text-align:center;"  />
								<display:column property="money"
									titleKey="com.application.systemmanager.allowance_money"
									 style="width:5%; text-align:center;"  />
								<display:column titleKey="com.application.systemmanager.operation" style="width:5%; text-align:center;">
									<c:url var="url" scope="page" value="toUpdateAllowancePut.do">
										<c:param name="id" value="${allowanceList.id}" />
										<c:param name="method" value="toUpdateAllowancePut" />
									</c:url>
									<html:link action="${url}"><bean:message key='com.application.systemmanager.update'/></html:link>
								</display:column>
							</display:table>
	              </fmt:bundle>
				</td>
			</tr>
		</table>
     </html:form>
	</body>
</html>
<script>

	
function validateSelect(){ 
    var count = 0;
    var jysBox = $s("id");
    for(var i=0;i<jysBox.length;i++){
		if(jysBox[i].checked){
        	count++;
		}
	}
    return count;
}

//查看公告
function view(){
	var result = validateSelect();
	if(result==0){
		alert("请选择一条记录！");
		return;
	}else if(result>1){
	    alert("一次只能查看一条记录！");
		return;
	}else{
		document.forms[0].action="viewNotice.do?method=viewNotice";
	    document.forms[0].submit();
	}
}

//查看通知
function showNotice(id){ 
     var url = "workBench.do?method=showNotice&bussinessID=" + id;
    openWindow(url,1000,600);
}
</script>
